<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	<link rel="stylesheet" type="text/css" href="./Public/Home/css/index.css"/>
	<link rel="stylesheet" type="text/css" href="./Public/Home/css/list.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/Home/css/common.css"/>
		<script src="./Public/Home/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="./Public/Home/js/style.js" type="text/javascript" charset="utf-8"></script>
	<script src="./Public/Home/js/common.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
	
	
{{include file="VIEW_PATH/Common/header.php"}}
	<div id="List">
		<!--第一部分搜索-->
		<div class="search">
			<div class="in_search">
				<span class="default_path">
					<a href="index.html">首页</a>
					<i>></i>
					<a href="search.html">全部搜索结果</a>
				</span>
				<div class="cate ">
					{{foreach from="$fatherData" key="$k" value="$v"}}
					<span class="catecontent">
					
					<a href="search.html?q=*&cate={{$v['cate_id']}}"><i>></i>{{$v['cate_name']}}</a>
				    </span>
				
				{{endforeach}}
				</div>
				<span class="qwords"><i>></i>全部</span>
			</div>
		 </div>
		 <!--第一部分结束-->
		 <script type="text/javascript">
		 	$(function(){
		 		var st=1;
		 		$(".lookmore .findtxt").click(function(){
		 		
		 			if(st==1){
		 				
		 			$(this).parents("li").find(".searchmore").removeClass("searchmore");
		 			st=2;
		 			}else if(st==2){
		 			$(this).parents("li").find(".smart_cate").addClass("searchmore");
		 			st=1;
		 			}
		 		})
		 	})
		 </script>
		 <!--分类列表开始-->
		 <div class="cate_list">
		 	<ul class="cate_list_inner">
		 		{{if value="!empty($data)"}}
		 		<li>
		 			<span class="init">分类</span>
		 			<div class="smart_cate searchmore">
		 				{{foreach from="$data" key="$k" value="$v"}}
		 				
		 			<a href="search.html?q=*&cate={{$v['cate_id']}}">{{$v['cate_name']}} </a>
					{{endforeach}}
					<div class="lookmore"> 
					<div class="spread_icon">
						<img src="./Public/Home/img/up.png" style="display: none;" alt="" />
						<img src="./Public/Home/img/down.png" alt="" />
						
					</div>
					<div class="findtxt">查看更多</div>
					</div>
		 			</div>
		 			
		 		</li>
		 		{{endif}}
		 		<!--{{foreach from="$finalTempAttr" key="$k" value="$v"}}
		 		<li><span>{{$v['name']}}</span>
		 			<div class="smart_cate">
		 			{{foreach from="$v['value']" key="$kk" value="$vv"}}	
		 			<a href="">{{$vv['ga_value']}} </a>
					{{endforeach}}
					
					<div class="lookmore"> 
					<div class="spread_icon">
						<img src="./Public/Home/img/up.png" style="display: none;" alt="" />
						<img src="./Public/Home/img/down.png" alt="" />
						
					</div>
					<div class="findtxt">查看更多</div>
					</div>
					
					</div></li>
					{{endforeach}}-->
					
					<!--品牌部分-->
					<?php if(isset($bidData)){   ?>
		 		<li><span class="init">品牌</span>
		 			
		 			<div class="smart_cate searchmore">
		 				{{foreach from="$bidData" key="$k" value="$v"}}
		 			<a href="search.html?q=*<?php if(isset($_GET['cate'])){ ?>&cate={{$_GET['cate']}}<?php } ?>&b={{$v['b_id']}}">{{$v['b_name']}}</a>
				   
					{{endforeach}}
					<div class="lookmore"> 
					<div class="spread_icon">
						<img src="./Public/Home/img/up.png" style="display: none;" alt="" />
						<img src="./Public/Home/img/down.png" alt="" />
						
					</div>
					<div class="findtxt">查看更多</div>
					</div>

						
					</div></li>
					<?php }?>
				
				<li><span>排序</span>
		 			<div class="smart_cate paixu "style="border-bottom: none;">
		 			<a href="">默认 </a>
					<a href="">价格 </a>
					<a class="check"><input type="checkbox" class="incheck" name="" id="" value="" />仅看有货产品</a>
					</div>
				</li>
		 	</ul>
	</div>
	
	<!--中间内容部分结束-->
		<!--图片区域开始-->
		<div class="content_img">
			
			<div class="content_img_in">
				<ul>
					{{foreach from="$catedata" key="$k" value="$v"}}
					<li class="list_item">
						<div class="C_img">
							<a href="goods_{{$v['g_id']}}.html">
								<img src="{{$v['g_pic']}}"/>
							</a>
						</div>
						<div class="C_cont">
							<p class="ptitle">{{$v['g_name']}}</p>
							<p class="pprice"> {{$v['g_shopprice']}}元</p>
						</div>
						<div class="C_btn">
							<a href="" class="tip_img"></a>
						</div>
					</li>
					{{endforeach}}
					
					
				</ul>
			</div>
		</div>
</div>
<!--/重甲内容部分-->
{{include file="VIEW_PATH/Common/footer.php"}}
<!--登录页面-->
{{include file="VIEW_PATH/Common/login.php"}}
<!--注册页面-->
{{include file="VIEW_PATH/Common/register.php"}}
		<!--右侧固定定位-->
{{include file="VIEW_PATH/Common/guright.php"}}
</body>
</html>